﻿@model FirmaKurierska.Models.RegisterModel
@{
    ViewBag.Title = "Rejestracja";
}

<hgroup class="title">
    <h2>@ViewBag.Title.</h2>
</hgroup>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    if (@Html.ValidationSummary(true) != null)
    {

    <div class="alert alert-danger">
        @Html.ValidationSummary(true)
    </div>
    }
    <div class="col-lg-6">
        <div class="well">
            <fieldset>
                @ViewBag.Message
                <legend>Utwórz nowe konto</legend>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.UserName)</label>
                    @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.UserName)
                   
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.Password)</label>
                    @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.ConfirmPassword)</label>
                    @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.Email)</label>
                    @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Email)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.NumerTelefonu)</label>
                    @Html.TextBoxFor(m => m.NumerTelefonu, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.NumerTelefonu)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.Imie)</label>
                    @Html.TextBoxFor(m => m.Imie, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Imie)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.Nazwisko)</label>
                    @Html.TextBoxFor(m => m.Nazwisko, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Nazwisko)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.Ulica)</label>
                    @Html.TextBoxFor(m => m.Ulica, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Ulica)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.NrDomu)</label>
                    @Html.TextBoxFor(m => m.NrDomu, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.NrDomu)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.NrMieszkania)</label>
                    @Html.TextBoxFor(m => m.NrMieszkania, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.NrMieszkania)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.KodPocztowy)</label>
                    @Html.TextBoxFor(m => m.KodPocztowy, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.KodPocztowy)
                </div>
                <div class="form-group">
                    <label>@Html.LabelFor(m => m.Miejscowosc)</label>
                    @Html.TextBoxFor(m => m.Miejscowosc, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Miejscowosc)
                </div>
                <div class="form-group">
                    <input type="submit" value="Zarejestruj!" class="btn btn-default" />
                </div>
            </fieldset>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
